import fetch from '@/utils/fetch';

export function getGuessList(type,page,ps){ //竞猜列表
	type=type||1;
	page=page||1;
	ps=ps||20;
	return fetch({
	    url: '/api/member.quizlog/index/ps/'+ps,
	    method: 'post',
	    params:{page},
	    data:"type="+type
	});
}

export function getGuessDetail(id){ //竞猜详情
	return fetch({
	    url: '/api/member.quizlog/show',
	    method: 'post',
	    data:"id="+id
	});
}

export function userInfo(){//用户信息
	return fetch({
	    url: '/api/member.info',
	    method: 'get'
	});
}

export function getChasingList(type,page,ps){ //追号列表
	type=type||1;
	page=page||1;
	ps=ps||20;
	return fetch({
	    url: '/api/member.appendlog/index/ps/'+ps,
	    method: 'post',
	    params:{page},
	    data:"type="+type
	});
}

export function getChasingDetail(id){
	return fetch({
	    url: '/api/member.appendlog/show',
	    method: 'post',
	    data:"id="+id
	});
}